package com.tkjt.pms.calc.formula.common;

import java.util.HashMap;
import java.util.Map;

public class FormulaCells {

	//excel公式
	private String cellFormula;
	//excel公式计算所需要的单元格数据
	private Map<String, String> cellValues = new HashMap<String, String>();

	public void setCellFormula(String cellFormula) {
		this.cellFormula = cellFormula;
	}

	public String getCellFormula() {
		return this.cellFormula;
	}

	public void addCellValue(String cellKey, String cellValue) {
		cellValues.put(cellKey, cellValue);
	}

	public Map<String, String> getCellValues() {
		return this.cellValues;
	}
	
	public void updateFormulaCells(FormulaVariableCells formulaVariableCells) {
		this.cellFormula = formulaVariableCells.getCellFormula();
		this.cellValues.putAll(formulaVariableCells.getCellValues());
	}

}
